import {createApp} from 'vue'
import {createPinia} from 'pinia'
import 'virtual:svg-icons-register'
import 'virtual:uno.css'
import '@/asset/style/index.css'
import 'element-plus/dist/index.css'
import '@unocss/reset/normalize.css'

import App from './App.vue'

import router from "@/router";
import '@/router/guard'
import {bindDirective} from "@/directive/bind";
import VIcon from "@/component/icon/VIcon.vue";
import {installElSvg} from "@/util/element/element";

// main.ts
const app = createApp(App)

app.config.warnHandler = () => null;

app.use(createPinia())
app.use(router)

// 绑定自定义指令
bindDirective(app)

//自定义SVG图标
app.component('v-icon', VIcon)

//安装Element图标
installElSvg(app)


app.mount('#app')
